package com.demo.consumer;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 通过SpringMVC暴露http访问接口
 */
@RestController
@RequestMapping(value = "/api/consumer")
public class ConsumerApi {
    @Resource
    private IConsumerService consumerService;

    @GetMapping("/getProviderAppName")
    public String getProviderAppName() {
        return consumerService.getProviderAppName();
    }
}
